// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
	return {
		name: 'form',
		caption: '',
		codeName: 'Usr0301710887',
		enableAutoSave: false,
		entityCodeName: 'Sys_organization',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Organization_name',
		cssName: '',
		controlType: 'FORM',
		formStyle: '',
		valueRule: getValueRule(),
		createDefaultItems: getCreateDefaultItems(),
		updateDefaultItems: getUpdateDefaultItems(),
		detailModel: getDetailModel(),
		uiEngineModel: [
			{
				name: 'engine_form',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWENGINE',
				eventNames: 'LOAD;SAVE;REMOVE',
				scriptCode: ``,
				entityCodeName: '',
				logicName: ``,
			},
		],
	};
}
function getValueRule() {
	return [];
}

function getCreateDefaultItems() {
	return [];
}

function getUpdateDefaultItems() {
	return [];
}
function getDetailModel() {
	return {
		formpage1: {
			caption: '基本信息',
			captionItemName: '',
			name: 'formpage1',
			codeName: 'formpage1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMPAGE',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
		},
		group1: {
			caption: '单位信息',
			captionItemName: '',
			name: 'group1',
			codeName: 'group1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'GROUPPANEL',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
			showMoreItems: [],
		},
		organization_number: {
			caption: '机构编号',
			captionItemName: '',
			name: 'organization_number',
			codeName: 'organization_number',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Organization_number',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		id: {
			caption: '标识',
			captionItemName: '',
			name: 'id',
			codeName: 'id',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Id',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		organization_name: {
			caption: '名称',
			captionItemName: '',
			name: 'organization_name',
			codeName: 'organization_name',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Organization_name',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		short_name: {
			caption: '简称',
			captionItemName: '',
			name: 'short_name',
			codeName: 'short_name',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Short_name',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		sort: {
			caption: '排序',
			captionItemName: '',
			name: 'sort',
			codeName: 'sort',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Sort',
			dataType: '1',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		parent_name: {
			caption: '上级名称',
			captionItemName: '',
			name: 'parent_name',
			codeName: 'parent_name',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Parent_name',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		tabpanel1: {
			caption: '',
			captionItemName: '',
			name: 'tabpanel1',
			codeName: 'tabpanel1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'TABPANEL',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
		},
		tabpage1: {
			caption: '人员信息',
			captionItemName: '',
			name: 'tabpage1',
			codeName: 'tabpage1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'TABPAGE',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
		},
		druipart1: {
			caption: '',
			captionItemName: '',
			name: 'druipart1',
			codeName: 'druipart1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'DRUIPART',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
		},
		tabpage2: {
			caption: '部门信息',
			captionItemName: '',
			name: 'tabpage2',
			codeName: 'tabpage2',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'TABPAGE',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
		},
		druipart2: {
			caption: '',
			captionItemName: '',
			name: 'druipart2',
			codeName: 'druipart2',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'DRUIPART',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
		},
	};
}
export const model = getModel();
